using System;
using TI_BLE_HCI_ClientLib.FrameManagement;
using Transport;
using Transport.Interfaces;

namespace ApplicationInfrastructure
{
    public static class DependencyResolver
    {
        public static IFullDuplexChannel GetSerialPortFullDuplexChannel(String PortName, int BaudRate)
        {
            return new SerialPortFullDuplexChannel(PortName, BaudRate);
        }

        public static IFrameManager GetFrameManager(IFullDuplexChannel channel)
        {
            return new FullDuplexChannelFrameManager(channel);
        }
    }
}